package com.huawang.mdesign.model.service.util.reqif;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import lombok.Getter;
import lombok.Setter;

/**
 * This class defines the primitive Integer data type.
 *
 * @author xdl
 * @since 2023-04-04
 */
@Getter
@Setter
@XStreamAlias(ReqIFConstants.DATATYPE_DEFINITION_INTEGER)
public class DatatypeDefinitionInteger extends AbstractDatatypeDefinitionSimple {

    /**
     * Denotes the largest positive data value representable by this data type.
     */
    @XStreamAlias(ReqIFConstants.MAX)
    @XStreamAsAttribute
    private Integer max;

    /**
     * Denotes the largest negative data value representable by this data type.
     */
    @XStreamAlias(ReqIFConstants.MIN)
    @XStreamAsAttribute
    private Integer min;
}
